<% form_tag url, :multipart => true do %>

	<% if @image && !@image.new_record? %>
	<%= image_tag @image.location, :class => "thumb" %>
	<% end %>

	<fieldset>
		<legend>Imagem</legend>
		
		<p><%= label_for "image", "file" %>
		<%= file_field "image", "file" %></p>
	
	</fieldset>
	
	<p class="actions">
		<button type="submit">Adicionar</button>
	</p>
	
<% end %>